import Vue from 'vue'
import App from './App.vue'
import './index.css'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import VueRouter from 'vue-router';
import router from './router'
import hljs from 'highlight.js'
import 'highlight.js/styles/googlecode.css' //样式文件
import store from './store/index'

Vue.directive('highlight',function (el) {
  let blocks = el.querySelectorAll('pre code');
  blocks.forEach((block)=>{
    hljs.highlightBlock(block)
  })
})
// import axios from 'axios'
// import { request } from './axiosconfig/axios';
// Vue.prototype.$request = request;
Vue.use(VueRouter);
Vue.use(ElementUI);

Vue.config.productionTip = false

new Vue({
  store,
  router,
  render: h => h(App),
}).$mount('#app')
